package com.tianda.his.modules.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tianda.his.modules.erp.dto.PruducerDto;
import com.tianda.his.modules.erp.entity.StockProducer;
import com.tianda.his.modules.erp.service.StockProducerService;
import com.tianda.his.modules.erp.mapper.StockProducerMapper;
import org.springframework.data.domain.jaxb.SpringDataJaxb;
import org.springframework.stereotype.Service;

/**
* @author jinken
* @description 针对表【stock_producer(生产厂家表)】的数据库操作Service实现
* @createDate 2025-09-17 09:07:29
*/
@Service
public class StockProducerServiceImpl extends ServiceImpl<StockProducerMapper, StockProducer>
    implements StockProducerService{


    @Override
    public Page<StockProducer> listProducterForPage(PruducerDto pruducerDto) {

        LambdaQueryWrapper<StockProducer> queryWrapper = new LambdaQueryWrapper<>();

        Page<StockProducer> page = new Page<>(pruducerDto.getPageNum(), pruducerDto.getPageSize());

        this.page(page,queryWrapper);

        return page;
    }
}




